<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <link href="/fbawarehouse/Public/images/logo.ico" rel="shortcut icon">
    <title><?php echo C('SITE_TITLE');?> - 后台管理系统</title>
    <base href="/fbawarehouse/index.php/Inbound" />
    <!-- css -->
    <link rel="stylesheet" href="/fbawarehouse/Public/stylesheets/admin/lanren1.css">
    <link rel="stylesheet" type="text/css" href="/fbawarehouse/Public/stylesheets/admin/base.css">
<link rel="stylesheet" type="text/css" href="/fbawarehouse/Public/stylesheets/admin/layout.css">
<link rel="stylesheet" type="text/css" href="/fbawarehouse/Public/javascripts/admin/asyncbox/skins/default.css">
<!--<link rel="stylesheet" type="text/css" href="/fbawarehouse/Public/javascripts/jquery-ui-1.11.4.custom/jquery-ui.min.css">-->

<!--yksui---->
<link href="/fbawarehouse/Public/yksui/css/zui.css?20161206" rel="stylesheet" />
<link href="/fbawarehouse/Public/yksui/css/step.css?20170407" rel="stylesheet" />
<link href="/fbawarehouse/Public/yksui/css/self.css?20161216" rel="stylesheet" />
<link href="/fbawarehouse/Public/yksui/css/style.css?20161227" rel="stylesheet" />
<link href="/fbawarehouse/Public/yksui/css/jquery.autocomplete.css" rel="stylesheet" />
<!---datatable css--->
<link href="/fbawarehouse/Public/yksui/lib/datatable10/css/jquery.dataTables.css?20161215" rel="stylesheet" />
<!------chosen css+js-->
<link href="/fbawarehouse/Public/yksui/lib/chosen/chosen.css?20161227" rel="stylesheet" />
<!------timedate css+js-->
<!--<link href="/fbawarehouse/Public/yksui/lib/datetimepicker/datetimepicker.css?20161226" rel="stylesheet" />-->
<!--date--->
<link href="/fbawarehouse/Public/yksui/lib/date/jquery.datetimepicker.css?20161226" rel="stylesheet" />
<link href="/fbawarehouse/Public/yksui/css/autocomplete/jquery-ui-1.10.4.custom.min.css" rel="stylesheet" />

    <!-- js -->
    <script src="/fbawarehouse/Public/javascripts/admin/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="/fbawarehouse/Public/javascripts/admin/jquery.lazyload.js" type="text/javascript"></script>
<script src="/fbawarehouse/Public/javascripts/admin/functions.js" type="text/javascript"></script>
<script src="/fbawarehouse/Public/javascripts/admin/base.js" type="text/javascript"></script>
<script src="/fbawarehouse/Public/javascripts/admin/jquery.form.js" type="text/javascript"></script>
<script src="/fbawarehouse/Public/javascripts/admin/asyncbox/asyncbox.js" type="text/javascript"></script>

<!--<script src="/fbawarehouse/Public/javascripts/admin/datepicker/datetimepicker_css.js" type="text/javascript"></script>-->
<script src="/fbawarehouse/Public/javascripts/admin/layer/layer.js" type="text/javascript"></script>
<!--<script src="/fbawarehouse/Public/javascripts/admin/gx_base.js" type="text/javascript"></script>
<script src="/fbawarehouse/Public/javascripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="/fbawarehouse/Public/javascripts/admin/jquery.watermark.js" type="text/javascript"></script>
<script src="/fbawarehouse/Public/javascripts/jquery-ui-1.11.4.custom/jquery-ui.min.js" type="text/javascript"></script>-->

<!--yksui---->

<script src="/fbawarehouse/Public/yksui/js/zui.js"></script>

<!--日期--->
<!--<script type="text/javascript" src="/fbawarehouse/Public/yksui/lib/datetimepicker/datetimepicker.min.js"></script>-->

<!--date--->
<script type="text/javascript" src="/fbawarehouse/Public/yksui/lib/date/jquery.datetimepicker.js"></script>
<script type="text/javascript" src="/fbawarehouse/Public/yksui/lib/datePicker/WdatePicker.js"></script>

<!--常用--->
<script type="text/javascript" defer src="/fbawarehouse/Public/yksui/js/admin.js"></script>
<!--dynamic table-->
<!--<script type="text/javascript" language="javascript" 
src="/fbawarehouse/Public/yksui/lib/datatable10/js/jquery.dataTables.js"></script>
<script type="text/javascript" language="javascript" 
src="/fbawarehouse/Public/yksui/lib/datatable10/js/dataTables.bootstrap.js"></script>
<script type="text/javascript" language="javascript" 
src="/fbawarehouse/Public/yksui/lib/datatable10/js/colResizable-1.5.min.js"></script>-->
<!------chosen css+js-->
<script type="text/javascript" src="/fbawarehouse/Public/yksui/lib/chosen/chosen.min.js"></script>

<script src="/fbawarehouse/Public/yksui/js/autocomplete/jquery-ui.js"></script>
<script src="/fbawarehouse/Public/yksui/js/autocomplete/jquery.ui.autocomplete.min.js"></script>
<script src="/fbawarehouse/Public/yksui/js/autocomplete/jquery-ui-1.10.4.custom.js"></script>

<script type="text/javascript">
    $(window).resize(autoSize);
    $(function(){
        autoSize();
        $(".loginOut").click(function(){
            var url=$(this).attr("href");
            popup.confirm('你确定要退出吗？','你确定要退出吗',function(action){
                if(action == 'ok'){ window.location=url; }
            });
            return false;
        });
        var time=self.setInterval(function(){$("#today").html(date("Y-m-d H:i:s"));},1000);
    });
</script>

</head>

<body>
    <div class="wrap">
        <!-- header -->
        <div id="Top">
    <div class="logo">
        <a href="<?php echo U('Home/Index/index');?>">亚马逊国内转运仓库</a>
    </div>

<!--     <div class="help">
        <a href="#">使用帮助</a><span><a href="#">关于</a></span>
    </div> -->

    <!-- menu -->
    
    <div class="menu1">
    <nav class="navbar" role="navigation">
        <div class="container-fluid">
            <ul class="nav nav-secondary topnav">
                <?php if(is_array($main_menu)): $i = 0; $__LIST__ = $main_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu_item): $mod = ($i % 2 );++$i; if($i == 1): ?><li class="fisrt <?php echo activedLink($key, null, 'fisrt_current');?> ">
                            <span><a class="show-title-tip" href="<?php echo U($menu_item['target']);?>" title-tip="<?php echo ($menu_item['tip']); ?>"><?php echo ($menu_item['name']); ?></a></span>
                        </li>
                    <?php elseif($i == count($main_menu)): ?>
                        <li class="end <?php echo activedLink($key, null, 'end_current');?>">
                            <span><a class="show-title-tip" href="<?php echo U($menu_item['target']);?>" title-tip="<?php echo ($menu_item['tip']); ?>"><?php echo ($menu_item['name']); ?></a></span>
                        </li>
                    <?php else: ?>
                        <li class="<?php echo activedLink($key, null, 'current');?>">
                            <span><a class="show-title-tip" href="<?php echo U($menu_item['target']);?>" title-tip="<?php echo ($menu_item['tip']); ?>"><?php echo ($menu_item['name']); ?></a></span>
                        </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            <div class="clear clearfix"></div>
            <div class="pull-right topright">
                <i class="icon-time"></i> <span id="today"><?php echo date("Y-m-d H:i:s");?></span>
                <i class="icon-user"></i> 欢迎您，<?php echo ($_SESSION['current_account']['email']); ?>  &nbsp;&nbsp; <i class="icon-signout"></i> <a href="<?php echo U('Home/Public/logout');?>"  style="color: #FFF;"><span>&nbsp;</span>退出系统</a></li>
            </div>
        </div>
            <!-- 代码部分begin -->
        <?php if(empty($tasksList)): else: ?>
            <div class="asideNav">
                <div id="rightArrow"><a href="javascript:;" title="未完成任务列表"></a></div>
                <div id="floatDivBoxs">
                    <div class="floatDtt">未完成任务列表</div>
                    <div class="floatShadow">
                        <ul class="floatDqq">
                            <?php if(is_array($tasksList)): $i = 0; $__LIST__ = $tasksList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="<?php echo ($vo["url"]); ?>" class="" target="_blank" > <li> <?php echo ($vo["msg"]); ?></li></a><?php endforeach; endif; else: echo "" ;endif; ?>
                        </ul>
                    </div>
                </div>
            </div><?php endif; ?>

    </nav>
</div>
<div class="clear clearfix"></div>


</div>
<div class="clear"></div>


        <!-- main -->
        <div class="mainBody">
            <!-- left -->
            <div id="Left">
    <div id="control"></div>
    <!--  <div class="subMenuList">
         <div class="itemTitle">
             常用操作
         </div>
         <ul>
             <?php if(is_array($sub_menu)): $i = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu_item): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U($key);?>" class="show-title-tip"><?php echo ($menu_item); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
         </ul> -->
<div class="list-group">
    <div class="itemTitle">
        常用操作
    </div>
     <?php if(is_array($sub_menu)): $i = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu_item): $mod = ($i % 2 );++$i;?><a href="<?php echo U($key);?>" class="list-group-item"><?php echo ($menu_item); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
    <!--
         <a href="#" class="list-group-item">用div >项目</a>
         <a href="#" class="list-group-item">待办</a>
         <a href="#" class="list-group-item">需求</a>
         <a href="#" class="list-group-item active">任务</a>
         <a href="#" class="list-group-item">Bug</a>
         <a href="#" class="list-group-item">用例</a>-->
     </div>


</div>


            <!-- right -->
            <div id="Right" >
                <ol class="breadcrumb mb10">
                    <!--<li><i class="icon icon-home"></i> 主页</li>-->
                    <li class="active"><i class="icon icon-home"></i><?php echo ($breadcrumbs); ?></li>
                </ol>
                <style>
    .tabliv {
        display: none;
    }
    .tabliv > table th, .tabliv > table td {
        padding: 8px;
        border-bottom: 1px solid #555;
    }
    .aadl{width: 210px;}
    .start{max-width: 100px;}
    .aadl dt {width:70px; float: left;}
    .wh{
        min-width: 250px;
        width: auto;
    }
</style>

        <div class="container-fluid">
            <div class="wrapper">
                     <div class="panel" id="nav">
                    <div class="panel-heading"><h3 class="panel-title">FBA平台计划单</h3></div>
                    <div class="panel-body">
                        <form action="/fbawarehouse/index.php/Inbound/Inboundshipmentplan/index"   method="get">
                            <div class="container-fluid">
                                <div class="col-sm-12 col-md-3  add-space">
                                    <div class="input-group input-group-md">
                                        <span class="input-group-addon">ShipmentId</span>
                                        <input class="form-control " placeholder="请输入内容" name="shipmentid"
                                               data-name-group="" type="text" value="<?php echo ($_GET['shipmentid']); ?>">
                                    </div>
                                </div>
                                <div class="col-sm-12 col-md-3  add-space">
                                    <div class="input-group input-group-md">
                                        <span class="input-group-addon">账号</span>
                                        <select class="chosen-select form-control" tabindex="-1" name="account_id"
                                                data-name-group="common">
                                            <option value="" class="empty-opt">-- 请选择 --</option>
                                            <?php if(is_array($accounts)): $i = 0; $__LIST__ = $accounts;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$acc): $mod = ($i % 2 );++$i;?><option value="<?php echo ($acc["id"]); ?>"><?php echo ($acc["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                                        </select>
                                    </div>
                                </div>
                                <div class="col-sm-12 col-md-3  add-space">
                                    <div class="input-group input-group-md">
                                        <span class="input-group-addon">站点</span>
                                        <select class="chosen-select form-control" tabindex="-1" name="site_id"
                                                data-name-group="common">
                                            <option value="" class="empty-opt">-- 请选择 --</option>
                                            <?php if(is_array($site)): $i = 0; $__LIST__ = $site;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><option value="<?php echo ($key); ?>"><?php echo ($value); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                                        </select>
                                    </div>
                                </div>
                                <div class="col-sm-12 col-md-3  add-space">
                                    <div class="input-group input-group-md">
                                        <span class="input-group-addon">状态</span>
                                        <select class="chosen-select form-control" tabindex="-1" name="status"
                                                data-name-group="common">
                                            <option value="" class="empty-opt">-- 请选择 --</option>
                                            <?php if(is_array($inbound_status)): $i = 0; $__LIST__ = $inbound_status;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$num): $mod = ($i % 2 );++$i;?><option value="<?php echo ($key); ?>"><?php echo ($num); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                                        </select>
                                    </div>
                                </div>


                                <div class="col-sm-12 col-md-6  add-space">
                                    <div class="input-group input-group-md">
                                        <span class="input-group-addon">要求到货时间</span>
                                        <input class="form-control form-date_1" type="text" name="claim_arrive_time_from" value="<?php echo ($_GET['claim_arrive_time_from']); ?>" style="cursor:pointer;" readonly>
                                        <span class="input-group-addon"><span class="icon-calendar"></span></span>
                                        <input class="form-control form-date_1" type="text" name="claim_arrive_time_to" value="<?php echo ($_GET['claim_arrive_time_to']); ?>" style="cursor:pointer;" readonly>
                                        <span class="input-group-addon fix-border fix-padding">&nbsp;<span class="text-danger">0</span>天</span>
                                    </div>
                                </div>
                                <div class="col-sm-12 col-md-3  add-space">
                                    <div class="input-group input-group-md">
                                        <span class="input-group-addon">拣货单</span>
                                        <select class="chosen-select form-control" tabindex="-1" name="print_pick_note_user"
                                                data-name-group="common">
                                            <option value="" class="empty-opt">-- 请选择 --</option>
                                            <option value="1" class="empty-opt">已打印</option>
                                            <option value="2" class="empty-opt">未打印</option>

                                        </select>
                                    </div>
                                </div>
                                <div class="col-sm-12 col-md-3 add-space">
                                    <div class="input-group input-group-md">
                                        <span class="input-group-addon">销售员</span>
                                        <select class="chosen-select form-control" tabindex="-1" name="seller_id"
                                                data-name-group="common">
                                            <option value="" class="empty-opt">-- 请选择 --</option>
                                            <?php if(is_array($seller)): $i = 0; $__LIST__ = $seller;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sel): $mod = ($i % 2 );++$i;?><option value="<?php echo (L("$key")); ?>"><?php echo ($sel); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                                        </select>
                                    </div>
                                </div>
                                <div class="col-sm-12 col-md-3  add-space">
                                    <div class="input-group input-group-md">
                                        <span class="input-group-addon">SKU</span>
                                        <input class="form-control " placeholder="请输入SKU" name="sku"
                                               data-name-group="" type="text" value="<?php echo ($_GET['sku']); ?>">
                                    </div>
                                </div>
                                <div class="col-md-6 add-space">
                                <input class="btn btn-primary jsSearchBtn" type="submit" value="搜索">
                                <button  id="download" type="button" class="btn btn-primary">导出</button>
                                <button  id="downloadother" type="button" class="btn btn-primary">下载完整FBA物流计划单</button>
                            </div>


                                </div>
                        </form>
                        <div class="clearfix"></div>
                        <hr>
                        <div class="fixed-table-toolbar b10">

                            <div id="toolbar" class="btn-group">
                                <button type="button" class="btn" data-toggle="modal" title="销售同事确认生成的平台计划单的始发地址、目的仓地址、每个SKU的数量、title没有问题，则可以推送仓库，推送仓库后仓库开始拣货" data-target=".btn_ck">推送到仓库
                                </button>
                                <button type="button" class="btn " id="pick_goods">打印拣货单</button>
                                <button type="button" class="btn" onclick="confirm_packing()" title="在仓库帮助大家录入箱唛数据后，需要大家查看确认装箱信息，美国站点需要下载箱唛表格上传到亚马逊后台，完成后再点击装箱确认，仓库同事帮助大家打印外箱贴">装箱确认</button>
                            </div>
                        </div>
                        <table class="table table-striped  table-hover" cellspacing="0" width="auto">
                            <thead>
                            <tr>
                                <th width="20"><input id="checkAll" type="checkbox"/></th>
                                <th width="40">序号</th>
                                <th width="30">&nbsp;</th>
                                <th>状态</th>
                                <th>Shipmentid</th>
                                <th>账号</th>
                                <th>站点</th>
                                <th>最佳到货时间</th>
                                <th class="start">起运地</th>
                                <th class="start">目的地</th>
                                <th>亚马逊配送中心标识</th>
                                <th>操作日志</th>
                                <th>备注(双击修改)</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if(is_array($data)): $num = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($num % 2 );++$num;?><tr>
                                    <td class="text-center"><input name="subBox" type="checkbox" value='<?php echo ($vo["id"]); ?>'/></td>
                                    <td><?php echo ($num); ?>
                                        <?php if($vo["fire"] == 1): ?><img src="/fbawarehouse/Public/yksui/images/hot.png"/><?php endif; ?></td>
                                    <td id="tr<?php echo ($vo["id"]); ?>" class="plantr"><font color="#008b8b" style="cursor:pointer; ">展开</font></td>
                                    <td><?php echo ($vo["status"]); if($failure == 1): ?>(后台标记失败)<?php endif; ?></td>
                                    <td><?php echo ($vo["shipmentid"]); ?></td>
                                    <td><?php echo ($vo["account_name"]); ?></td>
                                    <td><?php echo ($vo["site_id"]); ?></td>
                                    <td><?php echo ($vo["claim_arrive_time"]); ?></td>
                                    <td><?php echo ($vo["ship_from_address_id"]); ?></td>
                                    <td><?php echo ($vo["ship_to_address_id"]); ?></td>
                                    <td><?php echo ($vo["destination_fullfillment_center_id"]); ?></td>
                                    <td>
                                        <dl class="aadl">
                                            <dt>计划人</dt><dd><?php echo ($vo["create_user_id"]); ?></dd>
                                            <dt>计划时间</dt><dd><?php echo ($vo["create_time"]); ?></dd>
                                            <dt>拣货人</dt><dd><?php echo ($vo["print_pick_note_user"]); ?><br/></dd>
                                            <dt>拣货时间</dt><dd><?php echo ($vo["print_pick_note_time"]); ?></dd>
                                        </dl>
                                     </td>
                                    <td class="remark">
                                        <span class="textRemark"><?php echo ($vo["remark"]); ?></span>
                                        <span class="inRemark" style="display: none;">
                                            <input name="remark" class="w80" type="text" value='<?php echo ($vo["remark"]); ?>' onblur="updateRemark('<?php echo ($vo["id"]); ?>',this)"/>
                                        </span>
                                    </td>

                                    <td>
                                        <div class="dropdown">
                                            <button class="btn" type="button" data-toggle="dropdown">
                                                操作<span class="caret"></span>
                                            </button>
                                            <ul class="dropdown-menu pull-right">
                                                <li><a title="编辑" data-toggle="modal"  data-target="#edit<?php echo ($vo["id"]); ?>">修改</a></li>
                                                <li><a title="取消" href="/fbawarehouse/index.php/Inbound/Inboundshipmentplan/cancel?account_id=<?php echo ($vo["account_id"]); ?>&shipmentid=<?php echo ($vo["shipmentid"]); ?>&id=<?php echo ($vo["id"]); ?>">取消</a></li>
                                                <li><a title="推送到仓库" href="javascript:void(0);" onclick="push_to_Warehouse_detail('<?php echo ($vo["id"]); ?>')">推送到仓库</a></li>
                                                <li><a title="编辑"  onclick="pickGoodEnter('<?php echo ($vo["id"]); ?>','<?php echo ($vo["shipmentid"]); ?>','<?php echo ($vo["batch_code"]); ?>','<?php echo ($vo["account_name"]); ?>','<?php echo ($vo["site_id"]); ?>','<?php echo ($vo["seller_id"]); ?>')">拣货单确认</a></li>
                                                <li><a title="打印拣货单" href="javascript:void(0);" onclick="pick_goods('<?php echo ($vo["id"]); ?>')">打印拣货单</a></li>
                                                <li><a title="录入箱唛信息" href="javascript:void(0);" onclick="input_box('<?php echo ($vo["shipmentid"]); ?>')">录入箱唛信息</a></li>
                                                <li><a title="查看箱唛信息" href="/fbawarehouse/index.php/Inbound/Inboundshipmentplan/select_package_info?shipmentid=<?php echo ($vo["shipmentid"]); ?>">查看箱唛信息</a></li>
                                                <li><a title="预览箱唛贴" href="javascript:void(0);" onclick="print_prepackage('<?php echo ($vo["id"]); ?>','<?php echo ($vo["account_id"]); ?>','<?php echo ($vo["shipmentid"]); ?>')">预览箱唛贴</a></li>
                                                <li><a title="下载箱唛信息" onclick="inboundBoxDownload('<?php echo ($vo["id"]); ?>')">下载箱唛信息</a></li>
                                                <li><a title="下载发票" href="javascript:download_invoice('<?php echo ($vo["id"]); ?>','<?php echo ($vo["seller_name"]); ?>','<?php echo ($vo["shipmentid"]); ?>','<?php echo ($vo["site_id"]); ?>');" >下载发票</a></li>
                                                <li><a title="返回推送" href="javascript:returnStatus('<?php echo ($vo["id"]); ?>','<?php echo ($vo["status"]); ?>');" >返回推送</a></li>
                                                <?php if($failure == 1): ?><li><a title="平台标记发货完成" href="javascript:shippedOk('<?php echo ($vo["shipmentid"]); ?>');" >平台标记发货完成</a></li><?php endif; ?>


                                            </ul>
                                        </div>

                                        <!--编辑---->
                                        <div class="modal fade" id="edit<?php echo ($vo["id"]); ?>">
                                            <div class="modal-dialog modal-lg">
                                                <div class="modal-content">
                                                    <div class="modal-header">
                                                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
                                                                class="sr-only">关闭</span></button>
                                                        <h4 class="modal-title">修改</h4>
                                                    </div>
                                                    <form class="form-horizontal"  role="form">
                                                    <div class="modal-body">
                                                            <div class="container-fluid">
                                                                <h4 class="hide_ff">Shipmentid：<?php echo ($vo["shipmentid"]); ?>
                                                                </h4>
                                                                <table class="table table-striped  table-hover" cellspacing="0" width="100%" class="table1">
                                                                    <thead>
                                                                    <tr>
                                                                        <th>序号</th>
                                                                        <th>SKU</th>
                                                                        <th>需求数量</th>
                                                                        <th>储位</th>
                                                                        <th>是否退税</th>
                                                                    </tr>
                                                                    </thead>
                                                                    <tbody>
                                                                    <?php if(is_array($vo["detail"])): $number = 0; $__LIST__ = $vo["detail"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($number % 2 );++$number;?><tr class="plan_detail_<?php echo ($vo["id"]); ?>">
                                                                            <td><?php echo ($number); ?></td>
                                                                            <td class="sku_td">
                                                                                <input type="hidden" name="id_edit" value="<?php echo ($vo["id"]); ?>">
                                                                                <input type="hidden" name="account_id_edit" value="<?php echo ($vo["account_id"]); ?>">
                                                                                <input type="hidden" name="shipmentid_edit" value="<?php echo ($vo["shipmentid"]); ?>">
                                                                                <input type="hidden" name="destination_fullfillment_center_id_edit" value="<?php echo ($vo["destination_fullfillment_center_id"]); ?>">
                                                                                <input type="hidden" name="status_edit" value="<?php echo ($vo["status"]); ?>">
                                                                                <input type="text" disabled='true' class="form-control w120 sku" name="sku[]" value="<?php echo ($val["sku"]); ?>">
                                                                            </td>
                                                                            <td class="quantity_td">
                                                                                <input type="hidden" name="seller_sku[]" value="<?php echo ($val["seller_sku"]); ?>">
                                                                                <input type="hidden" name="datail_id[]" value="<?php echo ($val["id"]); ?>">
                                                                                <input type="hidden" name="fnsku[]" value="<?php echo ($val["fnsku"]); ?>">
                                                                                <input type="text" name="quantity[]" class="form-control w120 quantity" value="<?php echo ($val["quantity"]); ?>">
                                                                                <input type="hidden" name="site" value="<?php echo ($vo["site_id"]); ?>">
                                                                                <input type="hidden" name="trueQty[]" value="<?php echo ($val["quantity"]); ?>"></td>
                                                                            <td class="position_td"><input type="text" name="position[]" class="form-control w120" disabled='true' value="<?php echo ($val["position"]); ?>"></td>
                                                                            <td class="export_tax_rebate_td"> <select class="form-control" name="export_tax_rebate<?php echo ($vo["id"]); ?>" disabled='true' >
                                                                                <option <?=$val["export_tax_rebate"]=='是'?"selected":""?> value="1">是</option>
                                                                                <option <?=$val["export_tax_rebate"]=='否'?"selected":""?> value="0">否</option>
                                                                            </select></td>
                                                                        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                    </div>
                                                    <div class="modal-footer">
                                                        <button type="button" class="btn btn-primary save_detail" data-id="<?php echo ($vo["id"]); ?>">保存</button>
                                                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>

                                                    </div>
                                                    </form>
                                                </div>
                                            </div>
                                        </div>

                                    </td>
                                </tr>
                                <tr>
                                    <td id="tr<?php echo ($vo["id"]); ?>s"  colspan="17" class="tabliv" style="background-color: #ddd">
                                        <table>
                                            <thead>
                                            <tr>
                                                <th width="2%">序号</th>
                                                <th width="2%"><input class="checkAll" type="checkbox" value="<?php echo ($vo["id"]); ?>" /></th>
                                                <th width="3%">sku编号</th>
                                                <th width="3%">seller_sku</th>
                                                <th width="10%">中文名称</th>
                                                <th width="6%">fnsku</th>
                                                <th width="25%">title(双击修改)</th>
                                                <th width="10%">储位</th>
                                                <th width="2%">数量</th>
                                                <th width="2%">是否退税</th>
                                                <th width="10%">公司主体</th>
                                                <th width="4%">报关码</th>
                                                <th width="4%">sku申报要素</th>
                                                <th width="4%">sku品名</th>
                                                <th width="9%">合规信息</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                                <?php if(is_array($vo["detail"])): $number = 0; $__LIST__ = $vo["detail"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($number % 2 );++$number;?><tr>
                                                        <td><?php echo ($number); ?></td>
                                                        <td class="text-center"><input class="subBox<?php echo ($vo["id"]); ?>"  value="<?php echo ($val["id"]); ?>" type="checkbox"/></td>
                                                        <td><?php echo ($val["sku"]); ?></td>
                                                        <td><?php echo ($val["seller_sku"]); ?></td>
                                                        <td><?php echo ($val["sku_name"]); ?></td>
                                                        <td><?php echo ($val["fnsku"]); ?></td>
                                                        <td class="title">
                                                            <span class="texttitle"><?php echo ($val["title"]); ?></span>
                                                            <span class="intitle" style="display: none;">
                                                                <textarea name="title" class="form-control wh" cols="5" rows="3" onblur="updateTitle('<?php echo ($val["id"]); ?>',this)"><?php echo ($val["title"]); ?></textarea>
                                                                <!--<input name="title"  type="text" value='<?php echo ($val["title"]); ?>' onblur="updateTitle('<?php echo ($val["id"]); ?>',this)"/>-->
                                                            </span>
                                                        </td>
                                                        <td><p style="word-wrap: break-word;word-break : break-all; "><?php echo ($val["position"]); ?></p></td>
                                                        <td><?php echo ($val["quantity"]); ?></td>
                                                        <td><?php echo ($val["export_tax_rebate"]); ?></td>
                                                        <td><?php echo ($val["enterprise_dominant"]); ?></td>
                                                        <td><?php echo ($val["hs_code"]); ?></td>
                                                        <td><?php echo ($val["declaration_element"]); ?></td>
                                                        <td><?php echo ($val["sku_cname"]); ?></td>
                                                        <td><?php echo ($val["compliance"]); ?></td>
                                                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                                                <tr>
                                                    <td colspan="15">
                                                        <button class="btn btn-primary print" name="<?php echo ($vo["id"]); ?>">打印条形码</button>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                            </tbody>
                        </table>
                            <div class="clearfix clear">
                        </div>
                        <div class="row">
                        <div class="col-md-6 pull-left">
                            <label>每页 20 条记录
                                显示 1 到 20 项，共 <?php echo ($count); ?>项</label>
                        </div>
                        <div class="col-md-6">
                            <div class="page pull-right" style="padding: 0;margin: 0">
                                <?php echo ($page); ?>
                            </div>
                        </div>
                    </div>


                    </div>
                </div>

            </div>
        </div>
    </div>
    <!---wrapper end--->
</div>
<!---model 弹出页面----->
<!--上传平台箱唛信息文件 -->


<!-- 推送对话框 -->
<div class="modal fade btn_ck">
    <div class="modal-dialog modal-sm">

        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
                        class="sr-only">关闭</span></button>
                <h4 class="modal-title">推送到仓库</h4>
            </div>
            <div class="modal-body"><p class="text-primary">你确定要推送？</p></div>

        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="push_to_Warehouse_plan()">确定</button>
            <button type="button" class="btn" data-dismiss="modal">取消</button>
        </div>
    </div>
</div>
<script type="text/javascript" src="/fbawarehouse/Public/javascripts/admin/layer/layer.js"></script>
<!-------------------------当前页面js引用处--------------------------------->
<script>
    /**
     * 计算日期差
     * khq 2017.1.23
     */
    $('.form-date_1').datetimepicker({
        lang:'ch',
        timepicker:false,
        format:'Y/m/d',
        formatDate:'Y/m/d',
        onChangeDateTime:function(dp,$input){
            //alert(dp);
            date_needs();
        },
        onSelectDate:function()
        {
            date_needs();
        }
    });
    var date_needs =function(){
        var start_time = Date.parse($("input[name=claim_arrive_time_from]").val());
        var end_time   = Date.parse($("input[name=claim_arrive_time_to]").val());
        var diff       = end_time-start_time;                         //时间差的毫秒数
        var days=Math.floor(diff/(24*3600*1000));
        if(!isNaN(days))
            $(".text-danger").html(days);
    };

    $(function () {
        var get = "<?php  echo $_GET['create_time_to'];?>";
        //console.log(get);
        $("select[name='status']").val("<?php echo $_GET['status'];?>");
        $("select[name='print_pick_note_user']").val("<?php echo $_GET['print_pick_note_user'];?>");
        $("select[name='account_id']").val("<?php echo $_GET['account_id'];?>");
        $("select[name='site_id']").val("<?php echo $_GET['site_id'];?>");
        $("select[name='seller_id']").val("<?php echo $_GET['seller_id'];?>");
        $("select[name='carrier_service_id']").val("<?php  echo $_GET['carrier_service_id'];?>");
        date_needs();
        $('select.chosen-select').chosen({
            no_results_text: '没有找到',    // 当检索时没有找到匹配项时显示的提示文本
            disable_search_threshold: 2, // 10 个以下的选择项则不显示检索框
            search_contains: true         // 从任意位置开始检索
        });
        $(".plantr").click(function () {
//            var trid = $(this).attr("id");
            if($(this).text()=='展开'){
                $(this).text('关闭');
                $(this).css('color','red')
            }else {
                $(this).text('展开');
                $(this).css('color','#008b8b')
            }
            //alert($(this).text());
//            $("#" + trid + "s").toggle();

        });
    });

    /**
     * 展开
     */
    $(document).ready(function () {
        $(".plantr").click(function () {
            var trid = $(this).attr("id");
            $("#" + trid + "s").toggle();
        });
    });

    /**
     * 下载
     */
    $("#download").click(function () {
        var param = '';
        var batch_code        = $("select[name='batch_code']").val();
        var shipmentid        = $("input[name='shipmentid']").val();
        var status            = $("select[name='status']").val();
        var account_id      = $("select[name='account_id']").val();
        var site_id           = $("select[name='site_id']").val();
        var carrier_service_id= $("select[name='carrier_service_id']").val();
        var claim_arrive_time_from  = $("input[name='claim_arrive_time_from']").val();
        var claim_arrive_time_to    = $("input[name='claim_arrive_time_to']").val();

        if ($.trim(batch_code) != '') {
            param += "&batch_code=" + batch_code;
        }
        if ($.trim(status) != '') {
            param += "&status=" + status;
        }
        if ($.trim(shipmentid) != '') {
            param += "&shipmentid=" + $.trim(shipmentid);
        }
        if ($.trim(account_id) != '') {
            param += "&account_id=" + $.trim(account_id);
        }
        if ($.trim(site_id) != '') {
            param += "&site_id=" + $.trim(site_id);
        }
        if ($.trim(carrier_service_id) != '') {
            param += "&carrier_service_id=" + $.trim(carrier_service_id);
        }
        if ($.trim(claim_arrive_time_from) != '') {
            param += "&claim_arrive_time_from=" + $.trim(claim_arrive_time_from);
        }
        if ($.trim(claim_arrive_time_to) != '') {
            param += "&claim_arrive_time_to=" + $.trim(claim_arrive_time_to);
        }

        if (param != '') {
            param = '?' + param.substr(1);
        }
        window.location.href = '/fbawarehouse/index.php/Inbound/Inboundshipmentplan/download' + param;
    });
    //下载完整FBA物流计划单
    $("#downloadother").click(function () {
        var param = '';
        var batch_code        = $("select[name='batch_code']").val();
        var shipmentid        = $("input[name='shipmentid']").val();
        var status            = $("select[name='status']").val();
        var account_id      = $("select[name='account_id']").val();
        var site_id           = $("select[name='site_id']").val();
        var carrier_service_id= $("select[name='carrier_service_id']").val();
        var claim_arrive_time_from  = $("input[name='claim_arrive_time_from']").val();
        var claim_arrive_time_to    = $("input[name='claim_arrive_time_to']").val();

        if ($.trim(batch_code) != '') {
            param += "&batch_code=" + batch_code;
        }
        if ($.trim(status) != '') {
            param += "&status=" + status;
        }
        if ($.trim(shipmentid) != '') {
            param += "&shipmentid=" + $.trim(shipmentid);
        }
        if ($.trim(account_id) != '') {
            param += "&account_id=" + $.trim(account_id);
        }
        if ($.trim(site_id) != '') {
            param += "&site_id=" + $.trim(site_id);
        }
        if ($.trim(carrier_service_id) != '') {
            param += "&carrier_service_id=" + $.trim(carrier_service_id);
        }
        if ($.trim(claim_arrive_time_from) != '') {
            param += "&claim_arrive_time_from=" + $.trim(claim_arrive_time_from);
        }
        if ($.trim(claim_arrive_time_to) != '') {
            param += "&claim_arrive_time_to=" + $.trim(claim_arrive_time_to);
        }

        if (param != '') {
            param = '?' + param.substr(1);
        }
        window.location.href = '/fbawarehouse/index.php/Inbound/Inboundshipmentplan/downloadother' + param;
    });

    /*打印条形码*/
    //1.部分全选
    $(".checkAll").click(function () {
        var id = $(this).val();
        var name = 'subBox'+id;
        $("."+name).each(function () {
            $(this).attr("checked", !this.checked);
        });
    });
    //2.获取勾选的内容
    $(".print").click(function () {
        var choose = '';
        var print_box= 'subBox'+$(this).attr('name');
        $("."+print_box).each(function(){
            if($(this).is(':checked'))
            {
                choose += choose == ''?'?id='+$(this).val(): ','+$(this).val();
            }
        });
        if(choose ==''){
            layer.msg('请勾选后再打印', {icon: 5});return false;
        }
        window.open('/fbawarehouse/index.php/Inbound/Inboundshipmentplan/print_goods_code'+choose);
    });

   function print_prepackage (id,account_id,shipmentid)
    {
        var str  = '?id='+id+"&account_id="+account_id+'&shipmentid='+shipmentid;
        window.open('/fbawarehouse/index.php/Inbound/Inboundshipmentplan/print_prepackage'+str);
    };

    /**
     * 捡货单
     */
    $('#pick_goods').click(function (){
        var id = chk();
        var ids = '?ids='+id;
        if(id==''){
            layer.msg('请勾选后再打印', {icon: 5});return;
        }else{
            window.open('/fbawarehouse/index.php/Inbound/Inboundshipmentplan/pick_goods'+ids);
        }

    });
    function pick_goods(id){
        var ids = '?ids='+id;
        window.open('/fbawarehouse/index.php/Inbound/Inboundshipmentplan/pick_goods'+ids);

    }
    /**
     * 录入箱唛信息
     */
    $("#box").click(function () {
        var ids = '?ids='+chk();
        window.open('/fbawarehouse/index.php/Inbound/Inboundshipmentplan/package_box_index'+ids);
    });

    function input_box(shipmentid) {
        window.location.href = '/fbawarehouse/index.php/Inbound/Inboundshipmentplan/package_box_index_bak?shipmentid='+shipmentid;
    }

    /**
     *推送到仓库
     */
    function push_to_Warehouse_plan(){
        var ids = chk();
        push_to_Warehouse(ids)
    }
    function push_to_Warehouse_detail(ids){
        push_to_Warehouse(ids)
    }
    function push_to_Warehouse(ids){
        $.ajax({
            type: "get",
            async: true,
            url: "<?php echo U('Inboundshipmentplan/update_plan_and_datail_status');?>",
            data: {'ids':ids,status:10,statusto:15},
            dataType: "json",
            success: function(data){
                if(data.status==0){
                    layer.msg(data.info);
                    return;
                }
                layer.msg(data.msg, {icon: 6});
                parent.location.reload();
            }
        });
     }

    /**
     * 装箱确认
     */
    function confirm_packing(){
        var ids = chk();
        $.ajax({
            type: "get",
            async: true,
            url: "<?php echo U('Inboundshipmentplan/update_plan_and_datail_status_prepackage');?>",
            data: {'ids':ids,status:30,statusto:40},
            dataType: "json",
            success: function(data){
                if(data.status==0){
                    layer.msg(data.info);
                    return;
                }
                layer.msg(data.msg, {icon: 6});return;
            }
        });
    }

    /**
     * 获取选中的id
     */
    function chk() {
        var obj = document.getElementsByName('subBox'); //选择所有的对象，返回数组
        // 取到对象数组后，我们来循环检测它是不是被选中
        var s = '';
        for (var i = 0; i < obj.length; i++) {
            if (obj[i].checked) s += obj[i].value + ',';   //如果选中，将value添加到变量s中
        }
        if (s == '') {
            layer.msg('你还没有选择任何内容', {icon: 5});
            return false;
        }
        return s;
    }

    /**
     * 编辑
     */
    $(".save_detail").click(function(){
        var id="",
            account_id="",
            shipmentid = "",
            destination_fullfillment_center_id = "",
            sku_str = "",
            seller_sku_str="",
            datail_id_str="",
            quantity_str="",
            fnsku_str = "",
            status = "",
            site = "",
            msg = "";

        $(".plan_detail_"+$(this).attr('data-id')).find("td").each(function(){
            if($(this).attr('class') == 'sku_td')
            {
                id = $(this).find('input').eq(0).val();
                account_id = $(this).find('input').eq(1).val();
                shipmentid = $(this).find('input').eq(2).val();
                destination_fullfillment_center_id = $(this).find('input').eq(3).val();
                status = $(this).find('input').eq(4).val();
                sku_str += $(this).find('input').eq(5).val() + ";";
                if(status =='待推送仓库'){

                }else{
                    msg = "500";return false;
                }
            }else if($(this).attr('class') == 'quantity_td'){
                var seller_sku = $(this).find('input').eq(0).val();
                var datail_id  = $(this).find('input').eq(1).val();
                var quantity   = $(this).find('input').eq(3).val();
                var fnsku      = $(this).find('input').eq(2).val();
                    site      = $(this).find('input').eq(4).val();
                var trueQty      = $(this).find('input').eq(5).val();
                if ($.trim(site)=='US') {
                        msg = "505";
//                    var jia = parseInt(trueQty*0.95);
//                    var jian = parseInt(trueQty*1.05);
//                    if (parseInt(quantity) < jia){
//                        alert(seller_sku+'减少幅度不能大于百分之五');
//                        msg = "500";
//                    }
//                    if (parseInt(quantity) > trueQty){
//                        alert(seller_sku+'修改数量只能减少');
//                        msg = "500";
//                    }
                }
                seller_sku_str += seller_sku + ";";
                datail_id_str  += datail_id + ";";
                quantity_str   += quantity + ";";
                fnsku_str      += fnsku + ";";

            }
        });
        if(msg=='500'){
            layer.msg('只有待推送仓库的状态方可编辑哦', {icon: 5});return;
        }else if(msg=='505'){
            if(confirm('美国站点需要在亚马逊后台修改数量再在此系统进行修改，如已在亚马逊后台修改点击确定，没有的话点击取消')==true){
                msg = '';
            }else{
                msg = "505";
            }
        }
        if(msg == "") {
            $.ajax({
                type: "post",
                async: true,
                url: "<?php echo U('Inboundshipmentplan/edit');?>",
                data: {
                    'id':id,
                    'account_id':account_id,
                    'shipmentid':shipmentid,
                    'destination_fullfillment_center_id':destination_fullfillment_center_id,
                    'seller_sku_str':seller_sku_str,
                    'datail_id_str':datail_id_str,
                    'quantity_str':quantity_str,
                    'site':site,
                    'fnsku_str':fnsku_str
                },
                dataType: "json",
                success: function(data){
                    if(data.status==200){
                        layer.msg(data.msg, {icon: 6});
                        parent.location.reload();
                    }else {
                        layer.msg(data.msg, {icon: 5});
                    }
                }
            });
        }

    });

    /**
     * @param $inboundPlanId
     * @returns {boolean}
     * 下载箱唛数据
     */
    function inboundBoxDownload($inboundPlanId) {
        $.post("<?php echo U('Inboundshipmentplan/inboundBoxDown');?>", {inboundPlanId : $inboundPlanId}, function ($outPut) {
            if($outPut == 1) {
                layer.msg('该平台计划单无装箱数据', {icon: 5});return;
            } if($outPut == 2) {
                layer.msg('该计划单数据异常，请联系IT修正', {icon: 5});return;
            }
            window.location.href = '/fbawarehouse/index.php/Inbound/Inboundshipmentplan/downInboundBoxXlsx' + '?fileName=' + $outPut.fileName;
        }, 'json');
        return false;


    }
    function download_invoice(id,name,ship,site) {
        $.ajax({
            type: "post",
            async: true,
            url: "<?php echo U('Inboundshipmentplan/checkStatus');?>",
            data: {
                'id':id,
            },
            dataType: "json",
            success: function(data){
                if(data==404){
                    layer.msg('该状态不能下载发票', {icon: 5});
                    return;
                }else{
                    window.open('/fbawarehouse/index.php/Inbound/Inboundshipmentplan/download_invoice?id='+id+"&seller_name="+name+"&shipmentid="+ship+"&site_id="+site);
                }
            }
        });

    }
    //拣货单确认
    function pickGoodEnter(id,shipmentId,batch_code,account_name,site_id,seller_id) {
        var url="<?php echo U('Inboundshipmentplan/showPickSku');?>?id="+id+"&shipmentId="+shipmentId+"&batch_code="+batch_code+"&accountName="+account_name+"&site_id="+site_id+"&seller_id="+seller_id;
        layer.open({
            type: 2,
            title: '拣货单确认',
            shadeClose: false,
            shade: 0.8,
            area: ['80%', '80%'],
            content: url
        });
    }
    //返回推送
    function returnStatus(id, status) {
        if(status!='待拣货确认'){
            layer.msg('只有待拣货确认状态下才能进行操作！', {icon: 5});
        }else {
            if(confirm('确定要重置到待推送仓库状态？') == true){
                $.ajax({
                    type: "post",
                    async: true,
                    url: "<?php echo U('Inboundshipmentplan/returnStatus');?>",
                    data: {
                        'id':id,
                    },
                    dataType: "json",
                    success: function(data){
                        if(data.status==200){
                            layer.msg(data.msg, {icon: 6});
                            parent.location.reload();
                        }else{
                            layer.msg(data.msg, {icon: 5});
                        }
                    }
                });
            }
        }

    }
    //双击显示输入框
    $('.remark').dblclick(function () {
        $(this).children('.inRemark').show();
        $(this).children('.textRemark').hide();
    });
    //修改备注
    function updateRemark(id,re) {
        var id = id,
            remark = $(re).val();
        if(id!='' && remark!=''){
            $.ajax({
                type: "post",
                async: true,
                url: "<?php echo U('Inboundshipmentplan/updateRemark');?>",
                data: {'id':id,'remark':remark},
                dataType: "json",
                success: function(data){
                    if(data.status==200){
                        layer.msg(data.msg, {icon: 6});
                        parent.location.reload();
                    } else {
                        layer.msg(data.msg, {icon: 5});
                    }

                }
            });
        }
    }
    //双击显示输入框
    $('.title').dblclick(function () {
        $('.intitle').hide();
        $('.texttitle').show()
        $(this).children('.intitle').show();
        $(this).children('.texttitle').hide();
    });
    //修改title
    function updateTitle(id,re) {
        var detailId = id,
            title = $(re).val();
        if(detailId!='' && title!=''){
            $.ajax({
                type: "post",
                async: true,
                url: "<?php echo U('Inboundshipmentplan/updateTitle');?>",
                data: {'detailId':detailId,'title':title},
                dataType: "json",
                success: function(data){
                    if(data.status==200){
                        layer.msg(data.msg, {icon: 6});
                        parent.location.reload();
                    } else {
                        layer.msg(data.msg, {icon: 5});
                    }

                }
            });
        }
    }
    function shippedOk(shipmentid) {
        if(confirm('确定平台已标记发货？') == true){
            $.ajax({
                type: "post",
                async: true,
                url: "<?php echo U('Inboundshipmentplan/updateRemark');?>",
                data: {
                    'shipmentid':shipmentid,
                },
                dataType: "json",
                success: function(data){
                    if(data.status==200){
                        layer.msg(data.msg, {icon: 6});
                        parent.location.reload();
                    }else{
                        layer.msg(data.msg, {icon: 5});
                    }
                }
            });
        }
    }
</script>
            </div>
        </div>
        <div class="clear"></div>

        <!-- footer -->
        <!--<div id="Bottom">
    © 2014 Easy-Admin，Github项目地址：<a target="_blank" href="https://github.com/happen-zhang/easy-admin" target="_blank" >happen-zhang</a> Easy-Admin后台管理系统 All rights reserved
</div>-->


    </div>
    <script src="https://qiyukf.com/script/14ab9ac89093fd3fcc7b5c632ee1d9d8.js" defer async></script>
    <script>
        $(function(){
            var flag=0;

            $('#rightArrow').on("click",function(){
                if(flag==1){
                    $("#floatDivBoxs").animate({right: '0px'},300);
                    $(this).animate({right: '300px'},300);
                    $(this).css('background-position','0px 0');
                    flag=0;
                }else{
                    $("#floatDivBoxs").animate({right: '-305px'},300);
                    $(this).animate({right: '-5px'},300);
                    $(this).css('background-position','-50px 0');
                    flag=1;
                }
            });
        });
    </script>
</body>
</html>